package com.itheima.d1_file;

import java.io.File;

public class FileTest1 {
    public static void main(String[] args) {
        //
        File f1 = new File("D:\\JA\\day08-File、递归、字符集，IO流（一）\\代码\\file-io-app\\src\\abab.txt");
        System.out.println(f1.length());

        //目录
        File f2 = new File("D:/Java");
        System.out.println(f2.length());

        //绝对路径
        File f4 = new File("D:\\Java\\JavaEE_learn\\IO_learn\\src\\main\\java\\com\\itheima\\itheima.txt");
        System.out.println(f4.length());
    }
}
